using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Admin2024.Domain.Entity.System;
using Admin2024.EntityFrameworkCore;
using Admin2024.EntityFrameworkCore.EntityConfiguration;
using Microsoft.EntityFrameworkCore;
namespace Admin2024.EntityFrameworkCore
{
    public class Admin2024DbContext : DbContext
    {
        public Admin2024DbContext(DbContextOptions<Admin2024DbContext> options) : base(options)
        {

        }
        protected override void OnModelCreating(ModelBuilder modelBuilder)
        {
            modelBuilder.ApplyConfigurationsFromAssembly(typeof(AppUserConfiguration).Assembly);
        }

        public DbSet<AppUser> AppUser { get; set; }
        public DbSet<AppRole> AppRole { get; set; }
        public DbSet<AppUserRole> AppUserRole { get; set; }
        public DbSet<AppPermission> AppPermission { get; set; }
        public DbSet<AppRolePermission> AppRolePermission { get; set; }
        public DbSet<AppResource> AppResource { get; set; }
        public DbSet<AppOperation> AppOperation { get; set; }

    }
}